import request from "../../../../assets/js/request";

/**
 * 获取搜索数据
 * @param searchData
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export function getOpinionData(searchData){
  return request({
    url: '/opinion/searchData',
    method: "POST",
    data: searchData,
    headers:{
      "Content-Type" : "application/json"
    }
  })
}

/**
 * 删除数据
 * @param ids
 * @returns {Promise<AxiosResponse<any>> | *}
 */
export function deleteData(ids){
  return request({
    url: '/opinion/deleteData',
    method: "POST",
    data:ids,
    headers:{
      "Content-Type" : "application/json"
    }
  })
}
